//
//  XMBrowsHistoryReusableView.m
//  XMJJ_zml
//
//  Created by 丁浩 on 2025/5/28.
//

#import "XMBrowsHistoryReusableView.h"

@interface XMBrowsHistoryReusableView ()

@property (nonatomic, strong) UILabel *dateLabel;

@end

@implementation XMBrowsHistoryReusableView

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        [self creatUI];
    }
    return self;
}

- (void)creatUI {
    self.backgroundColor = kColorHEX(0xF7F7F7);
    [self addSubview:self.dateLabel];
}

- (void)setContentWithDateStr:(NSString *)dateStr {
    _dateLabel.text = dateStr;
}

- (UILabel *)dateLabel {
    if (!_dateLabel) {
        _dateLabel = [[UILabel alloc] initWithFrame:CGRectMake(KScaleWidth(10.0), 0, self.width - KScaleWidth(10.0), KScaleWidth(46.0)) font:KFontSize(15.0) textColor:kColorHEX(0x979797)];
    }
    return _dateLabel;
}

@end
